package com.javaspeak.designpatterns.go4.creational.factorymethod;

import com.javaspeak.designpatterns.go4.creational.factorymethod.Shape;

/**
 * Square
 *
 * @author John Dickerson
 */
public class Square implements Shape {

    /* (non-Javadoc)
     * @see com.javaspeak.designpatterns.go4.creational.factorymethod.
     *      Shape#draw()
     */
    @Override
    public void draw() {

        StringBuilder sb = new StringBuilder();
        sb.append( "xxxx\n" );
        sb.append( "x  x\n" );
        sb.append( "x  x\n" );
        sb.append( "xxxx\n" );

        System.out.println( sb.toString() );
    }
}
